package com.bzframework.pro.authorize.strategy.login;

import com.bzframework.pro.authorize.token.UserToken;
import reactor.core.publisher.Mono;

import java.util.Map;

/**
 * @Author bingzhong
 * @Date 2024/12/13 15:08
 * @Description
 */
public interface LoginStrategy {

    /**
     * 登录
     * @param parameter 携带参数
     * @return
     */
    Mono<UserToken> signIn(Map<String, Object> parameter);

    /**
     * 登出
     * @param token
     * @return
     */
    Mono<Long> signOut(String token);
}
